<%--
        Created by IntelliJ IDEA.
        User: 啥
        Date: 2022/12/6
        Time: 20:20
        To change this template use File | Settings | File Templates.
        --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User</title>
</head>
<body>
<input type="button" value="新增"><br>
<hr>
<table border="1" cellspacing="0" width="800">
<tr>
<th>序号</th>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
<th>所在队伍</th>
<th>状态</th>
<th>操作</th>

</tr>


<c:forEach items="${users}" var="user" varStatus="status">
<tr align="center">
<%--<td>${brand.id}</td>--%>
<td>${status.count}</td>
<td>${user.userName}</td>
<td>${user.sex}</td>
<td>${user.old}</td>
<td>${user.description}</td>
<c:if test="${user.status == 1}">
<td>在役</td>
</c:if>
<c:if test="${user.status != 1}">
<td>退役</td>
</c:if>

<td><a href="#">修改</a> <a href="#">删除</a></td>
</tr>

</c:forEach>




</table>


<hr>

<%--<c:forEach begin="1" end="10" step="1" var="i">--%>
<%--    <a href="#">${i}</a>--%>
<%--</c:forEach>--%>


</body>
</html>
